import request from '@/utils/request'
import {download} from '@/utils/request'

export function selectCSProcurementPlanCount(state) {
    return request({
        url: '/purchase/purchasePlan/selectCSProcurementPlanCount',
        method: 'post',
        data: {astate: state},
        headers:{
            "repeatSubmit": false
        }
    })
}


export function selectFarmeworkPlanCount() {
    return request({
      url: "/purchase/frameworkPlan/selectFramePlanCount",
      method: "post"
    })
}

export function selectContractCount() {
    return request({
      url: "/supplier/contract/selectContractCount",
      method: "post"
    })
}

export function queryTotalPurchaseAmount() {
    return request({
      url: "/purchase/budget/queryTotalPurchaseAmount",
      method: "post"
    })
}


export function selectTenderCount() {
    return request({
      url: "/purchase/tender/selectTenderCount",
      method: "post"
    })
}


// 查询采购计划列表
export function listPlan(query) {
    return request({
      url: '/purchase/purchasePlan/list',
      method: 'get',
      params: query
    })
}

export function selectTenderByState(data) {
    return request({
        url: "/purchase/tender/selectTenderByState",
        method: "post",
        data: data
    })
}

export function selectTenderByStateCount(data) {
    return request({
        url: "/purchase/tender/selectTenderByStateCount",
        method: "post",
        data: data
    })
}